import {FOOTER_HTML_INFO} from "./constant.config";
import {hopeTheme} from "vuepress-theme-hope";
import {langConfig} from "./lang.config";
import {navbar} from "./navbar";
import {sidebar} from "./sidebar";

/**
 * hope主题配置
 * 参考：https://theme-hope.vuejs.press/zh/config/
 */

export default {
    theme: hopeTheme({
        locales: langConfig,
        darkmode: "toggle",
        // 支持全屏
        fullscreen: true,
        // 纯净模式s
        // pure: true,
        print: false, // 打印按钮
        hostname: 'https://408.142vip.cn',
        author: {
            name: 'Chu Fan',
            email: 'fairy_408@2925.com',
            url: 'https://www.142vip.cn'
        },
        favicon: "/408_favicon.ico",
        logo: "/assets/408_logo.png",
        navbar: navbar,
        // 导航栏布局
        navbarLayout: {
            start: ["Brand"],
            center: ["Links"],
            end: ["Language", "Search", "Repo", "Outlook",]
        },
        sidebar: sidebar,
        // sidebar: "heading",

        // 主题布局选项
        repo: "https://github.com/142vip/408CSFamily",
        logoDark: "/assets/408_logo.png",

        // 博客配置
        blog: {
            name: '凡是过往',
            avatar: '',
            description: '',
            intro: '',
            roundAvatar: true,
            timeline: "时间轴的顶部文字",
            // articleInfo:"",
            // sidebarDisplay:"always",
            medias: {
                "BiliBili": "https://space.bilibili.com/350937042?spm_id_from=333.1007.0.0"
            }
        },

        // 设置页脚
        displayFooter: true,
        footer: FOOTER_HTML_INFO,
        // copyright:false,

        // 主题色选择器
        themeColor: {
            blue: "#2196f3",
            red: "#f26d6d",
            green: "#3eaf7c",
            orange: "#fb9b5f",
        },

        plugins: {
            blog: true,
            copyright: false,
            // 开启博客功能
            // blog:true,
            // 代码块
            mdEnhance: {
                codetabs: true,
            },
            copyCode: {
                showInMobile: true
            },
            feed: {
                json: true,
            },
        },
    })
}